<link rel="stylesheet" href="/statics/css/category.css">
<div class="blog-list">
    <h2 class="public-title">所有标签</h2>
    <div class="tags">
        <ul class="clearfix">
            <?php $article_total=0?>
             <?php foreach ($data as $keys=>$els):?>
                <?php $article_total+=(int)$els['article_total']?>
            <?php endforeach;?>
                <?php foreach ($data as $keys=>$els):?>
                     <li class="clearfix">
                          <aside>
                              <a href="<?=$els['tag_url']?>" target="_blank"><?=$els["tag_name"]?></a>
                          </aside>
                           <div class="inner">
                                 <span style="width: <?=($els['article_total']/$article_total)*100?>%"></span>
                           </div>
                     </li>
                <?php endforeach;?>
        </ul>
    </div>
</div>
